
let a = {
    [Symbol.toPrimitive]: function(){
        return 1
    }
}

console.log(a + 1)



let b = {
    toString(){
        return "12"
    },
    valueOf(){
        return new Object()
    }
}

console.log(b+1);
